import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [

  {
    path: '/',
    name: 'homePage',
    meta: {
      title: '北京竞赛项目首页'
    },
    component: () => import('@/page/index.vue'),
    children: [
      {
        path: 'medicalAnalysis',
        name: 'medicalAnalysis',
        component: () => import('@/page/medicalAnalysis'),
        meta: {
          title: '医疗服务分析',
          keepAlive: true
        }
      },
      {
        path: 'menteAnalysis',
        name: 'menteAnalysis',
        component: () => import('@/page/menteAnalysis'),
        meta: {
          title: '门特病分析',
          keepAlive: true
        }
      },
      {
        path: 'medicalServices',
        name: 'medicalServices',
        component: () => import('@/page/medicalServices'),
        meta: {
          title: '诊疗服务项目查询',
          keepAlive: true
        }
      },
      {
          path: "diseaseTimeAnalysis",
          name: "diseaseTimeAnalysis",
          component: () => import("@/page/diseaseTimeAnalysis")
      },
      {
          path: "costIllness",
          name: "costIllness",
          component: () => import("@/page/costIllness")
      },
      {
        path: 'drugCostAnalysis',
        name: 'DrugCostAnalysis',
        component: () => import('@/page/drugCostAnalysis'),
        meta: {
          title: '药品费用分析',
          keepAlive: true,
          isBack: false
        }
      },
      {
        path: 'regnHosplvDrugFeeAna',
        name: 'RegnHosplvDrugFeeAna',
        component: () => import('@/page/regnHosplvDrugFeeAna'),
        meta: {
          title: '区域/医院等级药品费用分析',
          keepAlive: true,
          isBack: false
        }
      },
      {
        path: 'fixmedinsDrugFeeAna',
        name: 'FixmedinsDrugFeeAna',
        component: () => import('@/page/fixmedinsDrugFeeAna'),
        meta: {
          title: '定点医疗机构药品费用分析',
          keepAlive: false
        }
      },
      {
        path: 'test',
        name: 'Test',
        component: () => import('@/page/test'),
        meta: {
          title: '测试',
          keepAlive: true
        }
      },
      {
        path: 'drugLandingStatistics',
        name: 'drugLandingStatistics',
        component: () => import('@/page/drugLandingStatistics'),
        meta: {
          title: '谈判药品落地情况监测统计查询',
          keepAlive: true
        }
      }
    ]
  }
  // {
  //     path: "/medicalServices",
  //     name: "medicalServices",
  //     component: ()=> import("@/page/medicalServices"),
  //     meta: {
  //         title: "诊疗服务项目查询",
  //         keepAlive: true
  //     }
  // }
]

const router = new VueRouter({
  routes
})

export default router
